package orm;

/**
 * AbstractTakeexamId entity provides the base persistence definition of the
 * TakeexamId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractTakeexamId implements java.io.Serializable {

	// Fields

	private long userid;
	private long testid;

	// Constructors

	/** default constructor */
	public AbstractTakeexamId() {
	}

	/** full constructor */
	public AbstractTakeexamId(long userid, long testid) {
		this.userid = userid;
		this.testid = testid;
	}

	// Property accessors

	public long getUserid() {
		return this.userid;
	}

	public void setUserid(long userid) {
		this.userid = userid;
	}

	public long getTestid() {
		return this.testid;
	}

	public void setTestid(long testid) {
		this.testid = testid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractTakeexamId))
			return false;
		AbstractTakeexamId castOther = (AbstractTakeexamId) other;

		return (this.getUserid() == castOther.getUserid())
				&& (this.getTestid() == castOther.getTestid());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getUserid();
		result = 37 * result + (int) this.getTestid();
		return result;
	}

}